package com.yupi.springbootinit.statemachine.enums;

import com.yupi.springbootinit.statemachine.core.Event;

/**
 * 工艺单事件枚举
 */
public enum ProcessSheetEventEnum implements Event {
    
    PUBLISH("PUBLISH", "发布工艺单", "PROCESS_SHEET"),
    CHANGE("CHANGE", "变更工艺单", "PROCESS_SHEET"),
    REPUBLISH("REPUBLISH", "重新发布", "PROCESS_SHEET");
    
    private final String code;
    private final String description;
    private final String eventType;
    
    ProcessSheetEventEnum(String code, String description, String eventType) {
        this.code = code;
        this.description = description;
        this.eventType = eventType;
    }
    
    @Override
    public String getCode() {
        return code;
    }
    
    @Override
    public String getDescription() {
        return description;
    }
    
    @Override
    public String getEventType() {
        return eventType;
    }
}